package fun.tan90.easy.binlog.plugin.webhook.model;

import fun.tan90.easy.binlog.plugin.common.model.OutputParam;
import lombok.Data;

/**
 * description TODO
 * company 铁人科技
 *
 * @author 陈浩杰
 * @date 2023/9/4 16:57
 */
@Data
public class WebhookParams implements OutputParam {

    private String url;

    private int maxRetryCount;

    private int connectTimeout = 5;

    private int readTimeout = 10;

    /**
     * 认证方式 0 无需认证  1 Basic Auth认证
     */
    private String authType;

    private BasicAuth basicAuth;

    @Data
    public static class BasicAuth {

        private String username;

        private String password;
    }
}
